package com.armani.service;

import com.armani.entity.Great;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GreatService
 * @Description TODO
 * @Author Xinyibuzai
 * @Date 2021/11/28 17:15
 * @Version 1.0
 **/
public interface GreatService {
    /**
     * @MethodName listSearch
     * @Description TODO 
     * @Param startRow
     * @Param limit
     * @Param name
     * @Param spuId 
     * @Return 
     * @Author Xinyibuzai
     * @Date 2021/11/28 
     **/
    List<Great> listSearch(Integer startRow, Integer limit, String name);
    /**
     * @MethodName getCount
     * @Description TODO 
     * @Param name
     * @Param spuId 
     * @Return 
     * @Author Xinyibuzai
     * @Date 2021/11/28 
     **/
    Integer getCount(String name);
    /**
     * @MethodName update
     * @Description TODO 
     * @Param name
     * @Param image
     * @Param url
     * @Param spuId
     * @Param state
     * @Param sort
     * @Param id 
     * @Return 
     * @Author Xinyibuzai
     * @Date 2021/11/28 
     **/
    void update(String name,String image,String url,Integer spuId,Integer state,Integer sort,Integer id);
    /**
     * @MethodName insert
     * @Description TODO 
     * @Param name
     * @Param image
     * @Param url
     * @Param spuId
     * @Param state
     * @Param sort 
     * @Return 
     * @Author Xinyibuzai
     * @Date 2021/11/28 
     **/
    void insert(String name,String image,String url,Integer spuId,Integer state,Integer sort);
    /**
     * @MethodName delete
     * @Description TODO 
 * @Param id
     * @Return 
     * @Author Xinyibuzai
     * @Date 2021/11/28 
     **/
    void delete(Integer id);
    /**
     * @MethodName state
     * @Description 上架/下架
     * @Param id
     * @Param state
     * @Return
     * @Author Xinyibuzai
     * @Date 2021/12/3
     **/
    Integer state(Integer id,Integer state);

    List<Great> pageSearch(String name);
}
